﻿
class ComplexNumberTest
{
    public static void Main()
    {
        ComplexNumber firstNumber = new ComplexNumber(1, 2);
        ComplexNumber secondNumber = new ComplexNumber(2, 3);
        System.Console.WriteLine("{0} + {1} = {2}", firstNumber, secondNumber, firstNumber + secondNumber);
        System.Console.WriteLine("{0} - {1} = {2}", firstNumber, secondNumber, firstNumber - secondNumber);
        System.Console.WriteLine("{0} * {1} = {2}", firstNumber, secondNumber, firstNumber * secondNumber);
        System.Console.WriteLine("{0} / {1} = {2}", firstNumber, secondNumber, firstNumber / secondNumber);
        double firstNumberAsDouble = (double)firstNumber;
        System.Console.WriteLine("First number as double {0}", firstNumberAsDouble);
        ComplexNumber thirdNumber = firstNumberAsDouble;
        System.Console.WriteLine(thirdNumber);
    }
}

